﻿#ifndef __SS_TIME_DISPATCH_H__
#define __SS_TIME_DISPATCH_H__
#include "../message/ssDispatch.h"
#include "../message/ssMsgIdDef.h"


namespace StarSeeker
{

class ssTimerDispatch : public ssDispatch
{
public:
	ssTimerDispatch()
	{
		SS_EVENT_MAP(SS_TIMER_HALF_HOUR, ssTimerDispatch::OnTimerHalfHour)
		SS_EVENT_MAP(SS_TIMER_ONCE, ssTimerDispatch::OnTimerOnce)
		SS_EVENT_MAP(SS_TIMER_REPEAT, ssTimerDispatch::OnTimerRepeat)
	}
private:
	virtual bool OnTimerHalfHour(u32 timerId, ulint param1, ulint param2)=0;
	virtual bool OnTimerOnce(u32 timerId, ulint param1, ulint param2)=0;
	virtual bool OnTimerRepeat(u32 timerId, ulint param1, ulint param2)=0;
};

}
#endif
